↳ Prolog
↳ PrologToPiTRSProof
perm_in(L, .(H, T)) → U1(L, H, T, append2_in(V, .(H, U), L))
append2_in(.(H, L1), L2, .(H, L3)) → U5(H, L1, L2, L3, append2_in(L1, L2, L3))
append2_in([], L, L) → append2_out([], L, L)
U5(H, L1, L2, L3, append2_out(L1, L2, L3)) → append2_out(.(H, L1), L2, .(H, L3))
U1(L, H, T, append2_out(V, .(H, U), L)) → U2(L, H, T, append1_in(V, U, W))
append1_in(.(H, L1), L2, .(H, L3)) → U4(H, L1, L2, L3, append1_in(L1, L2, L3))
append1_in([], L, L) → append1_out([], L, L)
U4(H, L1, L2, L3, append1_out(L1, L2, L3)) → append1_out(.(H, L1), L2, .(H, L3))
U2(L, H, T, append1_out(V, U, W)) → U3(L, H, T, perm_in(W, T))
perm_in([], []) → perm_out([], [])
U3(L, H, T, perm_out(W, T)) → perm_out(L, .(H, T))
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
perm_in(L, .(H, T)) → U1(L, H, T, append2_in(V, .(H, U), L))
append2_in(.(H, L1), L2, .(H, L3)) → U5(H, L1, L2, L3, append2_in(L1, L2, L3))
append2_in([], L, L) → append2_out([], L, L)
U5(H, L1, L2, L3, append2_out(L1, L2, L3)) → append2_out(.(H, L1), L2, .(H, L3))
U1(L, H, T, append2_out(V, .(H, U), L)) → U2(L, H, T, append1_in(V, U, W))
append1_in(.(H, L1), L2, .(H, L3)) → U4(H, L1, L2, L3, append1_in(L1, L2, L3))
append1_in([], L, L) → append1_out([], L, L)
U4(H, L1, L2, L3, append1_out(L1, L2, L3)) → append1_out(.(H, L1), L2, .(H, L3))
U2(L, H, T, append1_out(V, U, W)) → U3(L, H, T, perm_in(W, T))
perm_in([], []) → perm_out([], [])
U3(L, H, T, perm_out(W, T)) → perm_out(L, .(H, T))
PERM_IN(L, .(H, T)) → U11(L, H, T, append2_in(V, .(H, U), L))
PERM_IN(L, .(H, T)) → APPEND2_IN(V, .(H, U), L)
APPEND2_IN(.(H, L1), L2, .(H, L3)) → U51(H, L1, L2, L3, append2_in(L1, L2, L3))
APPEND2_IN(.(H, L1), L2, .(H, L3)) → APPEND2_IN(L1, L2, L3)
U11(L, H, T, append2_out(V, .(H, U), L)) → U21(L, H, T, append1_in(V, U, W))
U11(L, H, T, append2_out(V, .(H, U), L)) → APPEND1_IN(V, U, W)
APPEND1_IN(.(H, L1), L2, .(H, L3)) → U41(H, L1, L2, L3, append1_in(L1, L2, L3))
APPEND1_IN(.(H, L1), L2, .(H, L3)) → APPEND1_IN(L1, L2, L3)
U21(L, H, T, append1_out(V, U, W)) → U31(L, H, T, perm_in(W, T))
U21(L, H, T, append1_out(V, U, W)) → PERM_IN(W, T)
perm_in(L, .(H, T)) → U1(L, H, T, append2_in(V, .(H, U), L))
append2_in(.(H, L1), L2, .(H, L3)) → U5(H, L1, L2, L3, append2_in(L1, L2, L3))
append2_in([], L, L) → append2_out([], L, L)
U5(H, L1, L2, L3, append2_out(L1, L2, L3)) → append2_out(.(H, L1), L2, .(H, L3))
U1(L, H, T, append2_out(V, .(H, U), L)) → U2(L, H, T, append1_in(V, U, W))
append1_in(.(H, L1), L2, .(H, L3)) → U4(H, L1, L2, L3, append1_in(L1, L2, L3))
append1_in([], L, L) → append1_out([], L, L)
U4(H, L1, L2, L3, append1_out(L1, L2, L3)) → append1_out(.(H, L1), L2, .(H, L3))
U2(L, H, T, append1_out(V, U, W)) → U3(L, H, T, perm_in(W, T))
perm_in([], []) → perm_out([], [])
U3(L, H, T, perm_out(W, T)) → perm_out(L, .(H, T))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
PERM_IN(L, .(H, T)) → U11(L, H, T, append2_in(V, .(H, U), L))
PERM_IN(L, .(H, T)) → APPEND2_IN(V, .(H, U), L)
APPEND2_IN(.(H, L1), L2, .(H, L3)) → U51(H, L1, L2, L3, append2_in(L1, L2, L3))
APPEND2_IN(.(H, L1), L2, .(H, L3)) → APPEND2_IN(L1, L2, L3)
U11(L, H, T, append2_out(V, .(H, U), L)) → U21(L, H, T, append1_in(V, U, W))
U11(L, H, T, append2_out(V, .(H, U), L)) → APPEND1_IN(V, U, W)
APPEND1_IN(.(H, L1), L2, .(H, L3)) → U41(H, L1, L2, L3, append1_in(L1, L2, L3))
APPEND1_IN(.(H, L1), L2, .(H, L3)) → APPEND1_IN(L1, L2, L3)
U21(L, H, T, append1_out(V, U, W)) → U31(L, H, T, perm_in(W, T))
U21(L, H, T, append1_out(V, U, W)) → PERM_IN(W, T)
perm_in(L, .(H, T)) → U1(L, H, T, append2_in(V, .(H, U), L))
append2_in(.(H, L1), L2, .(H, L3)) → U5(H, L1, L2, L3, append2_in(L1, L2, L3))
append2_in([], L, L) → append2_out([], L, L)
U5(H, L1, L2, L3, append2_out(L1, L2, L3)) → append2_out(.(H, L1), L2, .(H, L3))
U1(L, H, T, append2_out(V, .(H, U), L)) → U2(L, H, T, append1_in(V, U, W))
append1_in(.(H, L1), L2, .(H, L3)) → U4(H, L1, L2, L3, append1_in(L1, L2, L3))
append1_in([], L, L) → append1_out([], L, L)
U4(H, L1, L2, L3, append1_out(L1, L2, L3)) → append1_out(.(H, L1), L2, .(H, L3))
U2(L, H, T, append1_out(V, U, W)) → U3(L, H, T, perm_in(W, T))
perm_in([], []) → perm_out([], [])
U3(L, H, T, perm_out(W, T)) → perm_out(L, .(H, T))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDP
APPEND1_IN(.(H, L1), L2, .(H, L3)) → APPEND1_IN(L1, L2, L3)
perm_in(L, .(H, T)) → U1(L, H, T, append2_in(V, .(H, U), L))
append2_in(.(H, L1), L2, .(H, L3)) → U5(H, L1, L2, L3, append2_in(L1, L2, L3))
append2_in([], L, L) → append2_out([], L, L)
U5(H, L1, L2, L3, append2_out(L1, L2, L3)) → append2_out(.(H, L1), L2, .(H, L3))
U1(L, H, T, append2_out(V, .(H, U), L)) → U2(L, H, T, append1_in(V, U, W))
append1_in(.(H, L1), L2, .(H, L3)) → U4(H, L1, L2, L3, append1_in(L1, L2, L3))
append1_in([], L, L) → append1_out([], L, L)
U4(H, L1, L2, L3, append1_out(L1, L2, L3)) → append1_out(.(H, L1), L2, .(H, L3))
U2(L, H, T, append1_out(V, U, W)) → U3(L, H, T, perm_in(W, T))
perm_in([], []) → perm_out([], [])
U3(L, H, T, perm_out(W, T)) → perm_out(L, .(H, T))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ PiDP
↳ PiDP
APPEND1_IN(.(H, L1), L2, .(H, L3)) → APPEND1_IN(L1, L2, L3)
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPSizeChangeProof
↳ PiDP
↳ PiDP
APPEND1_IN(.(L1), L2) → APPEND1_IN(L1, L2)
From the DPs we obtained the following set of size-change graphs:
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
APPEND2_IN(.(H, L1), L2, .(H, L3)) → APPEND2_IN(L1, L2, L3)
perm_in(L, .(H, T)) → U1(L, H, T, append2_in(V, .(H, U), L))
append2_in(.(H, L1), L2, .(H, L3)) → U5(H, L1, L2, L3, append2_in(L1, L2, L3))
append2_in([], L, L) → append2_out([], L, L)
U5(H, L1, L2, L3, append2_out(L1, L2, L3)) → append2_out(.(H, L1), L2, .(H, L3))
U1(L, H, T, append2_out(V, .(H, U), L)) → U2(L, H, T, append1_in(V, U, W))
append1_in(.(H, L1), L2, .(H, L3)) → U4(H, L1, L2, L3, append1_in(L1, L2, L3))
append1_in([], L, L) → append1_out([], L, L)
U4(H, L1, L2, L3, append1_out(L1, L2, L3)) → append1_out(.(H, L1), L2, .(H, L3))
U2(L, H, T, append1_out(V, U, W)) → U3(L, H, T, perm_in(W, T))
perm_in([], []) → perm_out([], [])
U3(L, H, T, perm_out(W, T)) → perm_out(L, .(H, T))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ PiDP
APPEND2_IN(.(H, L1), L2, .(H, L3)) → APPEND2_IN(L1, L2, L3)
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPSizeChangeProof
↳ PiDP
APPEND2_IN(.(L3)) → APPEND2_IN(L3)
From the DPs we obtained the following set of size-change graphs:
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ PiDP
↳ UsableRulesProof
PERM_IN(L, .(H, T)) → U11(L, H, T, append2_in(V, .(H, U), L))
U11(L, H, T, append2_out(V, .(H, U), L)) → U21(L, H, T, append1_in(V, U, W))
U21(L, H, T, append1_out(V, U, W)) → PERM_IN(W, T)
perm_in(L, .(H, T)) → U1(L, H, T, append2_in(V, .(H, U), L))
append2_in(.(H, L1), L2, .(H, L3)) → U5(H, L1, L2, L3, append2_in(L1, L2, L3))
append2_in([], L, L) → append2_out([], L, L)
U5(H, L1, L2, L3, append2_out(L1, L2, L3)) → append2_out(.(H, L1), L2, .(H, L3))
U1(L, H, T, append2_out(V, .(H, U), L)) → U2(L, H, T, append1_in(V, U, W))
append1_in(.(H, L1), L2, .(H, L3)) → U4(H, L1, L2, L3, append1_in(L1, L2, L3))
append1_in([], L, L) → append1_out([], L, L)
U4(H, L1, L2, L3, append1_out(L1, L2, L3)) → append1_out(.(H, L1), L2, .(H, L3))
U2(L, H, T, append1_out(V, U, W)) → U3(L, H, T, perm_in(W, T))
perm_in([], []) → perm_out([], [])
U3(L, H, T, perm_out(W, T)) → perm_out(L, .(H, T))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
PERM_IN(L, .(H, T)) → U11(L, H, T, append2_in(V, .(H, U), L))
U11(L, H, T, append2_out(V, .(H, U), L)) → U21(L, H, T, append1_in(V, U, W))
U21(L, H, T, append1_out(V, U, W)) → PERM_IN(W, T)
append2_in(.(H, L1), L2, .(H, L3)) → U5(H, L1, L2, L3, append2_in(L1, L2, L3))
append2_in([], L, L) → append2_out([], L, L)
append1_in(.(H, L1), L2, .(H, L3)) → U4(H, L1, L2, L3, append1_in(L1, L2, L3))
append1_in([], L, L) → append1_out([], L, L)
U5(H, L1, L2, L3, append2_out(L1, L2, L3)) → append2_out(.(H, L1), L2, .(H, L3))
U4(H, L1, L2, L3, append1_out(L1, L2, L3)) → append1_out(.(H, L1), L2, .(H, L3))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ RuleRemovalProof
PERM_IN(L) → U11(append2_in(L))
U21(append1_out(W)) → PERM_IN(W)
U11(append2_out(V, .(U))) → U21(append1_in(V, U))
append2_in(.(L3)) → U5(append2_in(L3))
append2_in(L) → append2_out([], L)
append1_in(.(L1), L2) → U4(append1_in(L1, L2))
append1_in([], L) → append1_out(L)
U5(append2_out(L1, L2)) → append2_out(.(L1), L2)
U4(append1_out(L3)) → append1_out(.(L3))
append2_in(x0)
append1_in(x0, x1)
U5(x0)
U4(x0)
U21(append1_out(W)) → PERM_IN(W)
append2_in(L) → append2_out([], L)
POL(.(x1)) = 2 + x1
POL(PERM_IN(x1)) = 2 + 2·x1
POL(U11(x1)) = 2·x1
POL(U21(x1)) = 2·x1
POL(U4(x1)) = 2 + x1
POL(U5(x1)) = 2 + x1
POL([]) = 0
POL(append1_in(x1, x2)) = 2 + x1 + x2
POL(append1_out(x1)) = 2 + x1
POL(append2_in(x1)) = 1 + x1
POL(append2_out(x1, x2)) = x1 + x2
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ RuleRemovalProof
↳ QDP
↳ DependencyGraphProof
PERM_IN(L) → U11(append2_in(L))
U11(append2_out(V, .(U))) → U21(append1_in(V, U))
append2_in(.(L3)) → U5(append2_in(L3))
append1_in(.(L1), L2) → U4(append1_in(L1, L2))
append1_in([], L) → append1_out(L)
U5(append2_out(L1, L2)) → append2_out(.(L1), L2)
U4(append1_out(L3)) → append1_out(.(L3))
append2_in(x0)
append1_in(x0, x1)
U5(x0)
U4(x0)